package com.marktotop.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.marktotop.entity.business.ObserveRecord;
import com.marktotop.error.SystemException;
import com.marktotop.response.ResultBean;
import com.marktotop.vo.business.ObserveVO;

import java.text.ParseException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author MarkToTop
 * @since 2021-07-12
 */
public interface IObserveRecordService extends IService<ObserveRecord> {

    /**
     * 所有接种后留观列表
     *
     * @param pageNum
     * @param pageSize
     * @param observeVO
     * @return
     */
    ResultBean findObserveList(Integer pageNum, Integer pageSize, ObserveVO observeVO);


    /**
     * 根据接种id查询某一留观列表
     *
     * @param id
     * @return
     * @throws SystemException
     */
    ObserveVO findOneObserve(Long id) throws SystemException;


    /**
     * 提交留观信息，进行留观记录
     *
     * @param observeRecord
     * @return
     * @throws SystemException
     */
    boolean postObserveRecord(ObserveRecord observeRecord) throws SystemException, ParseException;
}
